
import request from '@/config/axios'


// /system/poster/poster-type/list
export const getPosterTypeList = async () => {
  return await request.get({ url: `/system/poster/poster-type/list` })
}
// system/poster/config/get
export const getPosterConfig = async () => {
  return await request.get({ url: `/system/poster/config/get` })
}
// system/poster/config/create
export const createPosterConfig = async (data: any) => {
  return await request.post({ url: `/system/poster/config/create`, data })
}
// system/poster/poster-type/update
export const updatePosterType = async (data: any) => {
  return await request.put({ url: `/system/poster/poster-type/update`, data })
}
// system/poster/poster-type/delete
export const deletePosterType = async (params: any) => {
  return await request.delete({ url: `/system/poster/poster-type/delete`, params })
}

// /system/poster-config/create
export const createPosterType = async (data: any) => { 
  return await request.post({ url: `/system/poster/poster-type/create`, data })
}

// /system/poster-referral-relation/page
export const getPosterReferralRelationPage = async (params: any) => {
  return await request.get({ url: `/system/poster-referral-relation/page`, params })
}
// /system/poster-content/page
export const getPosterContentPage = async (params: any) => {
  return await request.get({ url: `/system/poster-content/page`, params })
}
// system/poster-content/create

export const createPosterContent = async (data: any) => {
  return await request.post({ url: `/system/poster-content/create`, data })
}

export const updatePosterContent = async (data: any) => {
  return await request.put({ url: `/system/poster-content/update`, data })
}

export const deletePosterContent = async (params: any) => {
  return await request.delete({ url: `/system/poster-content/delete`, params })
}
// system/poster-content/update-status
export const updatePosterContentStatus = async (data: any) => {
  return await request.put({ url: `/system/poster-content/update-status`, data })
}